package main.java.FSMDE.validation.rules;

import main.java.ERMDE.validation.ValidationType;
import main.java.FSMDE.models.Diagram;
import main.java.FSMDE.models.Interface;
import main.java.FSMDE.validation.IValidationEntry;


public class InterfaceShouldTriggerTransitionValidationEntry implements
		IValidationEntry {

	private Diagram diagram;
	private Interface fsminterface;
	
	InterfaceShouldTriggerTransitionValidationEntry(Diagram diagram, Interface inface){
		this.diagram = diagram;
		this.fsminterface = inface;
	}
	
	@Override
	public Diagram getDiagram() {
		return this.diagram;
	}

	@Override
	public String getMessage() {
		return String.format("Interface '%s' does not trigger any transition.", this.fsminterface);
	}

	@Override
	public ValidationType getType() {
		return ValidationType.ERROR;
	}

}
